package com.stylefeng.guns.modular.train.controller;

import com.stylefeng.guns.core.base.controller.BaseController;
import com.stylefeng.guns.modular.train.service.IEmployeeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.beans.factory.annotation.Autowired;
import com.stylefeng.guns.core.log.LogObjectHolder;
import org.springframework.web.bind.annotation.RequestParam;
import com.stylefeng.guns.common.persistence.model.MentoringRelationPoints;
import com.stylefeng.guns.modular.train.service.IMentoringRelationPointsService;
import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.stylefeng.guns.common.constant.Const;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.Date;
import java.util.List;

/**
 * 师徒积分控制器
 *
 * @author fengshuonan
 * @Date 2018-01-29 11:32:21
 */
@Controller
@RequestMapping("/mentoringRelationPoints")
public class MentoringRelationPointsController extends BaseController {

    private String PREFIX = "/train/mentoringRelationPoints/";

    @Autowired
    private IMentoringRelationPointsService mentoringRelationPointsService;
    @Autowired
    private IEmployeeService employeeService;
    /**
     * 跳转到师徒积分首页
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "mentoringRelationPoints.html";
    }

    /**
     * 获取师徒积分列表
     */
    @RequestMapping(value = "/list")
    @ResponseBody
    public Object list(String condition) {
        return mentoringRelationPointsService.selectList(null);
    }

}
